package com.zzyl.nursing.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.zzyl.nursing.mapper.CommenterMapper;
import com.zzyl.nursing.domain.Commenter;
import com.zzyl.nursing.service.ICommenterService;

/**
 * 用户评价Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-06-24
 */
@Service
public class CommenterServiceImpl implements ICommenterService 
{
    @Autowired
    private CommenterMapper commenterMapper;

    /**
     * 查询用户评价
     * 
     * @param cId 用户评价主键
     * @return 用户评价
     */
    @Override
    public Commenter selectCommenterByCId(Integer cId)
    {
        return commenterMapper.selectCommenterByCId(cId);
    }

    /**
     * 查询用户评价列表
     * 
     * @param commenter 用户评价
     * @return 用户评价
     */
    @Override
    public List<Commenter> selectCommenterList(Commenter commenter)
    {
        return commenterMapper.selectCommenterList(commenter);
    }

    /**
     * 新增用户评价
     * 
     * @param commenter 用户评价
     * @return 结果
     */
    @Override
    public int insertCommenter(Commenter commenter)
    {
        return commenterMapper.insertCommenter(commenter);
    }

    /**
     * 修改用户评价
     * 
     * @param commenter 用户评价
     * @return 结果
     */
    @Override
    public int updateCommenter(Commenter commenter)
    {
        return commenterMapper.updateCommenter(commenter);
    }

    /**
     * 批量删除用户评价
     * 
     * @param cIds 需要删除的用户评价主键
     * @return 结果
     */
    @Override
    public int deleteCommenterByCIds(Integer[] cIds)
    {
        return commenterMapper.deleteCommenterByCIds(cIds);
    }

    /**
     * 删除用户评价信息
     * 
     * @param cId 用户评价主键
     * @return 结果
     */
    @Override
    public int deleteCommenterByCId(Integer cId)
    {
        return commenterMapper.deleteCommenterByCId(cId);
    }
}
